package org.foundation.jala.jamerzip.view;

import java.awt.Dimension;
import java.awt.GridLayout;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.TableModel;

public class TableZipPanel extends JPanel{

	private static final long serialVersionUID = 1L;
	JTable infoTable;
	
	public TableZipPanel(TableModel model) {
		initComponents(model);
	}

	private void initComponents(TableModel model) {
		this.setLayout(new GridLayout(1, 1));
		this.infoTable = new JTable(model);
		JScrollPane pane = new JScrollPane(this.infoTable);
		this.infoTable.setAutoscrolls(true);
		pane.setPreferredSize(new Dimension(700, 500));
		add(pane);
	}
	public JTable getInfoTable() {
		return infoTable;
	}
}
